pkgname=gpgme
pkgver=1.9.0
pkgrel=1
pkgdesc="gnupg made easy"
url="http://www.gnupg.org/related_software/gpgme/"
arch="all"
license="GPL"
depends="gnupg"
depends_dev="libgpg-error-dev libassuan-dev"
makedepends="$depends_dev qt5-qtbase-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir"/gpgme-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="2a33343e907d9d70cc57dc1ef4e1c01995e1030bb0db937f44435643d6abfbb1bd55d52ba241701fa702783ebf035c09941131604fd8a811474b8bee41afccc8  gpgme-1.9.0.tar.bz2"
